Optimal. Leaf size=79 \[ \frac {\log \left (-\frac {e x^n}{d}\right ) \log ^2\left (c \left (d+e x^n\right )^p\right )}{n}+\frac {2 p \log \left (c \left (d+e x^n\right )^p\right ) \text {Li}_2\left (1+\frac {e x^n}{d}\right )}{n}-\frac {2 p^2 \text {Li}_3\left (1+\frac {e x^n}{d}\right )}{n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 79, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.278, Rules used = {2504, 2443,
2481, 2421, 6724} \begin {gather*} \frac {2 p \text {PolyLog}\left (2,\frac {e x^n}{d}+1\right ) \log \left (c \left (d+e x^n\right )^p\right )}{n}-\frac {2 p^2 \text {PolyLog}\left (3,\frac {e x^n}{d}+1\right )}{n}+\frac {\log \left (-\frac {e x^n}{d}\right ) \log ^2\left (c \left (d+e x^n\right )^p\right )}{n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2421
Rule 2443
Rule 2481
Rule 2504
Rule 6724
Rubi steps
\begin {align*} \int \frac {\log ^2\left (c \left (d+e x^n\right )^p\right )}{x} \, dx &=\frac {\text {Subst}\left (\int \frac {\log ^2\left (c (d+e x)^p\right )}{x} \, dx,x,x^n\right )}{n}\\ &=\frac {\log \left (-\frac {e x^n}{d}\right ) \log ^2\left (c \left (d+e x^n\right )^p\right )}{n}-\frac {(2 e p) \text {Subst}\left (\int \frac {\log \left (-\frac {e x}{d}\right ) \log \left (c (d+e x)^p\right )}{d+e x} \, dx,x,x^n\right )}{n}\\ &=\frac {\log \left (-\frac {e x^n}{d}\right ) \log ^2\left (c \left (d+e x^n\right )^p\right )}{n}-\frac {(2 p) \text {Subst}\left (\int \frac {\log \left (c x^p\right ) \log \left (-\frac {e \left (-\frac {d}{e}+\frac {x}{e}\right )}{d}\right )}{x} \, dx,x,d+e x^n\right )}{n}\\ &=\frac {\log \left (-\frac {e x^n}{d}\right ) \log ^2\left (c \left (d+e x^n\right )^p\right )}{n}+\frac {2 p \log \left (c \left (d+e x^n\right )^p\right ) \text {Li}_2\left (1+\frac {e x^n}{d}\right )}{n}-\frac {\left (2 p^2\right ) \text {Subst}\left (\int \frac {\text {Li}_2\left (\frac {x}{d}\right )}{x} \, dx,x,d+e x^n\right )}{n}\\ &=\frac {\log \left (-\frac {e x^n}{d}\right ) \log ^2\left (c \left (d+e x^n\right )^p\right )}{n}+\frac {2 p \log \left (c \left (d+e x^n\right )^p\right ) \text {Li}_2\left (1+\frac {e x^n}{d}\right )}{n}-\frac {2 p^2 \text {Li}_3\left (1+\frac {e x^n}{d}\right )}{n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(164\) vs. \(2(79)=158\).
time = 0.05, size = 164, normalized size = 2.08 \begin {gather*} \log (x) \left (-p \log \left (d+e x^n\right )+\log \left (c \left (d+e x^n\right )^p\right )\right )^2+2 p \left (-p \log \left (d+e x^n\right )+\log \left (c \left (d+e x^n\right )^p\right )\right ) \left (\log (x) \left (\log \left (d+e x^n\right )-\log \left (1+\frac {e x^n}{d}\right )\right )-\frac {\text {Li}_2\left (-\frac {e x^n}{d}\right )}{n}\right )+\frac {p^2 \left (\log \left (-\frac {e x^n}{d}\right ) \log ^2\left (d+e x^n\right )+2 \log \left (d+e x^n\right ) \text {Li}_2\left (1+\frac {e x^n}{d}\right )-2 \text {Li}_3\left (1+\frac {e x^n}{d}\right )\right )}{n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 2.50, size = 1356, normalized size = 17.16
method | result | size |
risch | \(\text {Expression too large to display}\) | \(1356\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\log {\left (c \left (d + e x^{n}\right )^{p} \right )}^{2}}{x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\ln \left (c\,{\left (d+e\,x^n\right )}^p\right )}^2}{x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________